Removed call to undefined function and fixed typo on panel4