Fixed bug caused by K&R style use of braces

Fixed bug caused by K&R style use of braces.