Correct static constructor bug