bug fix on management commands