fixed empty squares bug