Fixed animated repositioning bug for popover