fixed compile errors in utils.go