Fixed SIGBRT problem with S3 operation