Fix paint enable checking