Bugfix for out of heap when using Redshift