fixing stupid regex bug