figured out that we were returning a json object instead of a proper Project object