fixed a bug for not drawing backgroud color