put! was always returning nil.

put was always returning nil even when it was successful.