fix for last synced page calculation