Fixing the getExecutable method