Fixed an error with autoclose and pum