fixed issue with destroy server