fixed typo that was messing up button type