Fixing the direction of the set commands.