Fixed bug involving a missing curly brace