empty brackets exception fix