fixing not reading stop position