Added better error message when prefix is not matched