fixing css replace only replacing the first one