Some compile objects deleted.
Added check on empty stack.