fix for bad regex parsing