*added bugfix provided by Miller Puckette