bugfix: resize of non addable Panels crashed
bugfix: return reference of local variable