hopefully fixed the inconsistency bug