Improved prefix guessing and erroring