Fixes double outputs from ActiveRecord