fix undef in add cross