[BUGFIX] handler is undefined when resizing the backend