fix a reference bug in commander