fix scanner order (fixes #65)