fix empty hash