fix for cmd check