cleared some runtime bugs