Fixed a missed opening curly brace in an if statement. Not sure if this was causing any issues or not, but this commit fixes it