bug fixes, depth rect