fixed offline submitting