Fixing missing brackets after if