fixed weird bug in put due to changes