Fixed the models to return json instead of random stuff