fixed undefnined