Fixed: display errors correctly