Corrected wrong modulo