Fixed potential bug.