Fixed error block displaying always.