fix bug with pinpoint