fixes a bug with missing bracket