Fixed popover not being removed after cancel.

Fixes #5.