fixed bug in ship control