Fix bug in retrieving menu pieces