Fixed some runtime bugs.