bug fix: undefined rest request