correction of some problems