fix potential attribute error