fix double printing on startup