Correct check for internal bindings [Fix #1022]