fix `is not object` bug