Fix Bugs of api_disk.py