fixed bug of improper linking