Replace int fmod by %