Fixes corrupted scheme