correction to the custom block sample