fixed two typos in a method name and fixed a  null pointer exception in the call back timer for Figure