Fixed annoying GUI bug