fix undefined constant BASE error in safecracker