Added active check to potential code

Was omitted from Potential check, sadly.