manually fixed counter cache until rails is fixed