fixed another bug.
added a pause