fixed up lastpage