added limit on monitors added (to avoid a possible seg fault)