fix bug in canvas based Grid constructor