fix round function