Conditional bug in getFramework corrected