fixed a bug in ahir instantiation in case of dummy ports