fixed int vs round bug