limited painting bugfix