Need to add a `resize(10, 10)` here. Otherwise the failure is due to the lack of resize.