Fixed ruby syntax (1.8 style)