Controller template fix