fix undefined selector (bug 1040990)