fixing edit component