Added fixes for removing empties

Very hacky. Not too stable. Works on Pyramid.dat only (for some reason
or another)