Fix for issue #274, ebObj ref'd before assignment