fixed bugsl.