Fix error where a string is used instead of a array

Small fix