fixed drawing issue