bugfix: no code end added in code engine