fix to logic on default controller