added bugsense and fix bug