fixed a problem returning an empty array
Merge branch 'master' of https://github.com/RexOps/Rex