Fixed IE8 bug and dependancy callback bug