fix pos bug