chain drawing bug fixed