Remove redundant square brackets