fixed the broken code

fixed the broken code