Fix rendering of widget surface