Fix karma script bugs
Version 0.1.20