Fix popup rendering