bug fixed for test