Fix scan command