fixed issue error when base variable was not defined
Signed-off-by:shawnsandy <shawnsandy04@gmail.com>