fixed small bug with put handler