Finally found it. Stupid indentation error.