fixed bug in get_amount_of_ship