fixes bug 'user cannot be converted to array'