Fixed a bug that allowed storage of garbage values.