Fixed debug message that said an error was occurring when it wasnt