Fix pending contracts count