fix problems in ErlideOpen, return empty lists instead of null