fixing weird opengui bugs