fixed bug; runfile updating in wrong place