fixing the errors of fix_bound and adding fix_moments