bugfix, display did not show correct state