fixing brushstart undefined error