fixed #327 level end popup when the barrier dies