fixed prefix check