Fix extension requires directive