resize and reload fixes