Fixed rest request made twice