Fixed layoutDepth and layoutWidth got mixed up.