Implemented proper handling of stub placeholder modules