Fixed bug in toolbar js.