Actions in Dope Sheet

For some reason my actions are showing up in the dope sheet and are linked… When I click the X in the action editor to remove an action it still plays as it shows up in the dope sheet. However when I delete the keys from the dope sheet it also deletes them from the action editor.

Does anyone know why this is happening?

Turns out for some reason it keeps the action in the dope sheet unless the action changes… I think this may be a bug but it seems to work for now.