Figure undefined error resolved.