Changed packet decodng logic, made it cleaner and reliable, this solved the loss of the decryption