fix for regex warnings