fix bug in dataprocessor