Fixing initialisation for servlets.