fixed problem with round function