Fixes bug with raw data output