Hash declarations not being removed. Fixed #24