Final behavior achieved.
Small update to fix the context being erased after resetting the
dimensions.