Fix error on using in Rails
Up to v1.1.1