Fixed issues with OWIN.