Bugfix in paint