fix replaceClass regexp