fix autoresizing problem