fixing sm scheduling