Fixed crash with disabling/enabling auto shrink