FIX bugs

+ Resizing bug.
+ Incorrect config error handling.