intermediate bug fix