improve 'putFailed' check