Some fixes for correct Pegasys auth