Finally figured out where the error was... sigh