fix one minor warning, one typo, add --check step in the definition