Fix corner case for interpolated mask
Adding gain support