main bug fixed