Fix warnings.
add missing ap_my_generation--;