fix some dynamic display bugs