Fixes crasher in popover