Fixed minor issue with error popup not popping up right.