Updated bug fix for showing errors