Perseveration
WordNet
noun
(1) The act of persisting or persevering; continuing or repeating behavior
"His perseveration continued to the point where it was no longer appropriate"
(2) The tendency for a memory or idea to persist or recur without any apparent stimulus for it