Add Fix from https://github.com/schmittjoh/serializer/pull/238/commits