Synchronized drawing of elements
Quick fix to variable declarations