Fix enterDocument not being called on Loader main component