Fixed directional bug