Fixed bugs with write to disc button