Syntax fix for some versions of ruby