fixed another compatibility bug. Further added better resizing support (not complete yet).