Fixed typeof comparison