Fixed a limit for static initializers
(cherry picked from commit c4235bbfec17fa203ecac0aec1c95901a2f7bf84)