Fixing ajax form state error.