fixed a small code error - but reopened issue #1