Fixed stupid replace bug