Fix bug with hashes being present in create and edit mode.