fixing problem with transaction not beeing object