Fixing a missing sign in the code