Clearing actions vector as well.