secondary commands bug fix