Fixed double post problem

When sending inside onOpen it did POST twice and failed