Fixed a bug that prohibited depth preference to be used.