fixed the stubbed error problem