Fix a bug with direction booleans