Fixes repeat errors