Rewrite the sentence by correcting the misplaced modifier, squinting modifier, or dangling modifier.

Philip scarcely had read three chapters when he found out the library book was overdue.

When Philip had barely read three chapters, he found out the library book was overdue.