"check detail" js bug fix