Fixed problem with jQuery lazy initialization