fixed bug in fillrect