Bug with class buttons fixed. (during panel resizing)