Fixed the modulus error