fix rectangle draw class