fixed bug with preExecute