fix ajax option loading issue