[fix] [minor] fixes for dirty()