nullpointer bugfix (possibly not needed - was an error in closing of alignment panels)