fix undefined reference error on a2