Use === 1 for isVisible check

Fix #653