Fixed AI crashing on AG_USER_INOUT