fixed setting errors