Fixed regression in class Shape introduced by 4d05a81