Resize callback fixed