Fix for the context menu bug
(https://github.com/chandanrrk/critical/issues/1).