fixed directions API JSON error