fixed bug with dot on p2