Fixed some bug at HttpApplication