Analyze the sentence to determine whether it contains a dangling construction or is written correctly.

My tooth ached while hurrying to the dentist.