depth state fix.