Prevent double rendering after compiling