little bugfix on put