fixed bug of missing semicolons