Fixed promises in Http service