fixed submit problem