module type class was being added twice