fixed bug in golf script