fix clear warehouse