fix array to make compatible with 5.3