fixed some display_errors issues