Page break not working on first load