fixed fail in direction to boolean