Fixed potential bug