double drawing bug fixed