fix pos bugs