Fix bug clear variable