make validity check of CanvasSizing mor robust