Fixed redundant warnings bug.