Fix first code block detection bug