remove duplicate warning
add debug output to G_FreeEntity