fixed libcall bug