fixed error in post submission method call