fixed bug with changing from unprocessed to processed