Workaround for issue #213, removing object from the stack that wasn't correctly removed.