fixed ios incorrect offset