Fixed on_resize call