fixed bug where calling set with a hash didn't aways work