bug fix at func object instanceof