Fixed draw multiple times bug