Fixed possible crash in forem