Fix exec to set the mode

This syntax works? :)