Solves the issues for shortcuts not working for all documents