Fix the quite embarrassing bug how to check for SMI