Fix for symbol bug in some ruby versions