New version with autoOpen: false fix