fixed issue 781 - extra bracket on line 136 caused library to crash