Fixes a bug where JSON isn't detected