make sure userpanel doesn't crash