[#982] Fixed sign in bug