fixed runtime bug