Fixing bug in shift template edit operation