Too much debugging, mismatched the pointer comparison