Fix the automatic resize