fix when items painting nil