Fixed bug on Prelogin