Fixes a logic bug in the drawing template