fixed compatibility bug with karma 0.12.x