Fixed empty idcard issue