general cleanup
Fix bug reported by "rodtoll"

    Error in return from var_get_value. Keyerror