fixed bug in philink