fix regex bug in max parse out