fix replacting of Print