fix for sd state