fixed posting bugs to server