Fixing trailing ,s in modules