bug fix with blur event