fix warning / possible crash