Fixed wrong replacement