Fix project count bug