Fixed wrong array dimensions