Fixed wrong array type calculation.