test fix for first and last page