catching in resize exceptions to adapt to the devel environment