bug fix for pin pages