Minor Bug Fix for Regex