Bug Fix: Fix some bugs in ApbFile class.