Fixed #55 Problem with replacement and mixed datatype