fix deleting actions for no reason