fix for really small pages