Fixed a bug where the buttons were showing the dialogue as open when it wasn't.