Workaround. Surface needs to be at least 1x1 to be allocated