fixed bugs with range atack