Fix rectangle class