fix bug that missed semicolon which caused an runtime exception