fixed never-happening errors