fix cal plugin