Fixed incorrect resource handler initialization.