fixed regex errors