Iterator Bug Fix for Valid Prefix