Well i don’t think that the shot we see at the end of the episode when Emma is looking at the book is actually happening at the moment that Emma is looking at the book. I think that scene happened in Jefferson’s past after the Queen trapped him in Wonderland.