Fixed modal check count (don't trust js2coffee)