fix bugs and update place entropy