fix bug in generation of spider media