Check for stWidget before using it