Typo
Error when gate opening before button pressed