Fix the bug caused by previous bug fixing on inverse_ALK.r