Fixed bug in drawing tools.