Tried to fix angularjs bug.