display function fix

fixed that error