Bug Fix on factorial.