Fix for error introduced in debug