fixed bug in `stardev` script