Fixed minor bugs in WMS and SAR