Fix block bug in study creation