fixed out of round error