Fix ruby template issue due to derferencing of not existing ruby variables