Corrected ref setting in commands