bugfix in cooke remove