Prevented undefined error