update manifest
fix wrong context checking condition