fix typeof null -> object