refines admin screen detection to avoid fatal error