fixed a bug with ingredient manager