Fixes undefined warning