fix bug with factory buildings checks -2