fixed bug with displaying only one rectangle