fixing bug with writing rpms