Fix error 'no implicit conversion of Symbol into Integer'