Fixed the malfunction of Functor caused by an implicit bug.