Fix rectangle method