Removes useless actions