fixed issues with stack instance mappings