minor bug fixed