Bug in ActivityTool.java