Corrected monitors handling so that it works on single monitor as well