Fix exception in execute()