Fix releas handling

@maethu