fixed gmetric script