fixing multi rep bug