Fixed the broken handler by replacing FileIO with IOBase