Added missing quotes around ref commands