fix for error diplaying