Deal with empty hash