Fixed small code bug