fixed json empty issue