fixed block model js bug