fixed empty repository detection...