fixed some missing {} brackets