Fixed assertion against array width/height