Fixed upgrade issue

Thanks to bedirhan for reporting the issue.