Fix brackets and bad mojo