Fix undefined error

This fixes the build error you are seeing