Fix error 'no implicit conversion of Symbol into Integer'
Merge pull request #765 from iguto/master

Fix error 'no implicit conversion of Symbol into Integer'