bug in resize-mechanism fixed