fixed swapped coords on several things