Fixed error caused by get_plugins not being defined