fix the prototype issue of restangular