Fix the usage of find_factor