necessary bug fix