I remember this.. uhh..
Did you end all functions which were running in created entities?
I used the PROC_GLOBAL state sometimes and then this shit happened.