fixe check display event for code areas