fix array assignment