fixed prepare+clear bug