fixed weird linking problem