fix judgeing display