fix to not throw error when there is no variable type