Fixes modify_s bugs and custom directory loading issues.