fix code issue in celery