Fixed painting on startup