Fix non-deterministic parsing caused by the layout timer