fixed Type of arg 1 to values must be hash (not subroutine entry)

lets cast return value into hash first for older perls