bug fix [] -> {}