Ruby style fixes