Fixed bugs with objlink.