Fixed bug in celery