perseveration -- (the tendency for a memory or idea to persist or recur without any apparent stimulus for it)
perseverance, persistence, perseveration -- (the act of persisting or persevering; continuing or repeating behavior; "his perseveration continued to the point where it was no longer appropriate")