fixed some runtime errors