Fixing ruby sintax