fix hidden entity visible after logging in