Fixes pop error when context isn't set.