Fix for SD (not tested), started to fix LR