fix typeof syntax