fix for the last page