Fix for localStorage build bugs.