Fixed bug in put