Fixed fatal error on some setups