correct a bug with put