Fix static initialization bug with backends