A 15 month-old toddler who wandered onto train tracks outside of her home in Suzaka City, northwest of Tokyo, and had a oncoming train grind to a halt on top of her, has survived with only scratches for injuries.

HuffPo reported that the girl lived because she got trapped in a 50-centimeter gap between the train and the tracks.

“The train pushed her along the level crossing and dropped her into a pit between the rails,” Fuji Yoshida police spokesman Kenichi Nagata told PTI.

Props to the train driver for noticing the baby girl and applying the emergency brakes in time, too.