Fixes drawing issue