Fix maxX and maxY for Flame device