avoid error about undefined array