Fixed bug causing processing to fail