Fixed bug where a non object value would overwrite validation