fixed factor bug