fix drawing issue