Fixed clearing of repos variable