convert LoopCount double to Int32
fix bug when we rename a keyboard