Indentation here seems wrong -- do you have tabs by any chance?