fiwing some display bugs