fixed several bugs with detailLevel, type and stack