Fix get_plugins method