fix ruby hash syntax