Replace empty hash usage