update fixed

fixed duplicate code block