Fix framework detection