fixed has own property bug