fixed issue with prefix extraction