fixed medium array issue