Fixing bug: calling wrong getWwwDir method