Use the correct value for direction.