fix improper linking