fixed void context detection