fixed wam problem