fix typeof